package com.smashedapples.sandbox.components
{
	import mx.controls.Label;
	
	import smashedapples.core.View;

	public class SandboxPanel extends View
	{
		public function SandboxPanel()
		{
			super();
			/* this.direction = BoxDirection.VERTICAL; */
		}
		
		override protected function childrenCreated():void
		{
			_title.styleName = "sandboxPanelTitle";
			this.addChild(_title);
 			
			super.childrenCreated();
		}
	
		
		private var _title : Label = new Label();
		public function get title():String
		{
			return this._title.text;
		} 
		public function set title(value:String):void
		{
			this._title.text = value;
		} 
		
		override public function get label():String
		{
			if( this.title != null )
				return this.title;
			return super.label;
		}
		
	}
}